package com.freight.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "order_common_line")
@TableName("order_common_line")
@ApiModel(value = "常用线路")
public class CommonLine  extends FreightBaseEntity {

    @ApiModelProperty(value = "货主Id")
    @Column(nullable = true)
    private Long companyUserId;

    @ApiModelProperty(value = "收货人单位名称")
    private String takeName;

    @ApiModelProperty(value = "收货联系人名称")
    private String takeContactName;

    @ApiModelProperty(value = "收货人电话")
    private String takePhone;

    @ApiModelProperty(value = "提货人单位名称")
    private String extractName;

    @ApiModelProperty(value = "提货联系人名称")
    private String extracContactName;

    @ApiModelProperty(value = "提货人电话")
    private String extractPhone;

    @ApiModelProperty(value = "起始县区列表")
    private String beginAreaCode;

    @ApiModelProperty(value = "起始地址")
    private String beginAddress;

    @ApiModelProperty(value = "结束县区列表")
    private String endAreaCode;

    @ApiModelProperty(value = "结束地址")
    private String endAddress;

    @ApiModelProperty(value = "装货经度")
    private Double beginLng;

    @ApiModelProperty(value = "装货纬度")
    private Double beginLat;

    @ApiModelProperty(value = "卸货经度")
    private Double endLng;

    @ApiModelProperty(value = "卸货纬度")
    private Double endLat;

    @ApiModelProperty(value = "装货电子围栏")
    private Double pretendEnclosure;

    @ApiModelProperty(value = "卸货电子围栏")
    private Double dischargeEnclosure;



}
